#include <cctype>
#include <string>

#ifdef DEBUG
#include <iostream>
#endif

bool rule6(std::string key) {
    char nChiffres = 0;
    for (int i = 0; i < key.length(); i++) {
        if (isdigit(key[i])) {
            nChiffres++;
        } else {
            nChiffres = 0; //Chiffre -> on recommence !
        }
        if (nChiffres > 12) {
#ifdef DEBUG
#pragma omp critical
            std::cerr << key << " - R6 : " << (int) nChiffres << std::endl;
#endif
            return false;
        }
    }
    return true;
}